package com.fgw.controller.portal;

import com.fgw.common.ServerResponse;
import com.fgw.service.IWorktrendService;
import com.fgw.vo.WorktrendListVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by lyj on 2017/9/8.
 */
@Controller
@RequestMapping("/Worktrend/")
public class WorktrendController {

    @Autowired
    private IWorktrendService iWorktrendService;

    /**
     * 前端工作动态列表Controller
     * @return
     */
    @RequestMapping(value = "list.do",method = RequestMethod.GET)
    @ResponseBody
    public ServerResponse<WorktrendListVo> getListNeedWorktren(){

        return  iWorktrendService.getWorktrendList();
    }

}
